import request from "@/utils/request";

export default {
  // 树形列表
  listTree: function () {
    return request({
      url: '/business/statistics/listTree',
      method: 'get',
    })
  },
  // 初始化页面列表
  pageInitData: function (params) {
    return request({
      url: "/business/statistics/pageInitData",
      method: "get",
      params: params,
    });
  },

  // 获取疲劳寿命列表
  getSpecialComputeParamList: function (params) {
    return request({
      url: "/business/statistics/getSpecialComputeParamList",
      method: "get",
      params: params,
    });
  },
  // 获取P-S-N列表
  getPsnMethodDataList: function () {
    return request({
      url: "/business/statistics/getPsnMethodDataList",
      method: "get",
    });
  },
  // 疲劳强度参数列表
  getStrengthMethodDataList: function () {
    return request({
      url: "/business/statistics/getStrengthMethodDataList",
      method: "get",
    });
  },
  // 查询列表
  queryResultDataList: function (data) {
    return request({
      method: 'post',
      url: '/business/statistics/queryResultDataList',
      data: data,
    })
  },

  // 测试条件配置 弹层列表
  getParamListByMaterialID: function (params) {
    return request({
      url: "/business/statistics/getParamListByMaterialID",
      method: "get",
      params: params,
    });
  },
  // 可靠性指标 弹层列表
  getReliabilityIndexList: function (params) {
    return request({
      url: "/business/statistics/getReliabilityIndexList",
      method: "get",
      params: params,
    });
  },
  // 计算结果表格数据修改后，保存入库
  saveComputeReusult: function (data) {
    return request({
      method: 'post',
      url: '/business/statistics/saveComputeReusult',
      data: data,
    })
  },


};
